package com.example.pcl.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Schema(description = "通知DTO",name = "NotificationsDTO")
public class NotificationsDTO {
    @Schema(description = "通知ID", example = "1")
    private Integer notificationId;

    @Schema(description = "通知标题", example = "预约提醒")
    private String title;

    @Schema(description = "通知内容", example = "您有一条新的心理咨询预约")
    private String content;

    @Schema(description = "接收者用户ID", example = "101")
    private Integer recipientId;

    @Schema(description = "通知状态 (0: 未读, 1: 已读, 2: 已删除)", example = "0")
    private Integer notificationStatus;

    @Schema(description = "过期时间", example = "2024-12-31T23:59:59")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expirationTime;

    @Schema(description = "关联预约ID", example = "202")
    private Integer appointmentId;
}

